package com.cslg.ac.demo.constant;

import java.lang.reflect.Field;

public class LikeType {

	public static final int USER = 1;
	public static final int PET = 2;
	
	private static Field[] fields = LikeType.class.getFields();
	
	public static boolean isLikeType(int likeType)
	{
		for(Field field : fields)
		{
			try
			{
				if(field.getInt(LikeType.class) == likeType)
					return true;
			}
			catch (Exception e)
			{
				e.printStackTrace();
			}
		}
		return false;
	}
}
